package com.boe.csb.core.common.status;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by tianxiang.luo on 16/12/14.
 */
public enum ApiAuditType {


    AUDIT("audit","订阅需要审核"),
    NO_AUDIT("no_audit","订阅不需要审核");

    private String type;
    private String desc;


    ApiAuditType(String role, String desc){
        this.type = role;
        this.desc = desc;

    }

    public static Map<String,String> map = new HashMap<>();

    static {
        for (AdminUserRole admin:AdminUserRole.values()){
            map.put(admin.getRole(),admin.getDesc());
        }
    }

    public String getRole() {
        return type;
    }

    public void setRole(String role) {
        this.type = role;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
